package com.huidu.bitrade.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.huidu.bitrade.config.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ActivityHdzOrderInfoVo {

    @ApiModelProperty("id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty("矿机状态：0.已参与1.挖矿中2.已结束")
    private Integer status;

    @ApiModelProperty("累计收益")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal interest;

    @ApiModelProperty("昨日收益")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal lastInterest;

    @ApiModelProperty("申购时间")
    private String createTime;

    @ApiModelProperty("起息日")
    private String interestTime;

    @ApiModelProperty("挖矿天数")
    private long days;

    @ApiModelProperty("当前赎回率")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal redeemRate;

    @ApiModelProperty("参与数量")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal number;

    @ApiModelProperty("赎回可得")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal earnings;

    @ApiModelProperty("赎回扣除")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal deduct;

    @ApiModelProperty("赎回提示")
    private String message;

    @ApiModelProperty("赎回时间")
    private Long redeemTime;

    @ApiModelProperty("币种")
    private String symbol;

}
